//
//  NavigationController.swift
//  GreenDeal
//
//  Created by Moennig Q on 2023/3/30.
//

import UIKit

class BaseNavigationController: UINavigationController, UIGestureRecognizerDelegate{

    override func viewDidLoad() {
      super.viewDidLoad()
      self.interactivePopGestureRecognizer?.delegate = self
    }
    //右滑手势
    func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
      if self.navigationController?.viewControllers.count == 1{
        return false
      }
      return true
    }
}
